import request from "/@/utils/request"

/**
 * 获取物料对比数据
 * @param data
 */
export function gtLeftMaterialRecords(data?: any) {
    return request({
        url: '/wms/leftmaterial/GetLeftMaterialRecords',
        method: 'post',
        data: data
    })
}
/**
 * 获取遗留物料表数据
 * @param data
 */
export function getLeftmaterials(data?: any) {
    return request({
        url: '/wms/leftmaterial/GetLeftmaterials',
        method: 'post',
        data: data
    })
}
/**
 * 根据工序获取产线
 * @param data
 */
export function getProductionlineByProcessId(data?: any) {
    return request({
        url: '/wms/process/GetProductionlineByProcessIdNoPage',
        method: 'post',
        data: data
    })
}
/**
 * 提交遗留
 * @param data
 */
export function addOrUpdateLeftMaterial(data?: any) {
    return request({
        url: '/wms/leftmaterial/AddOrUpdateLeftMaterial',
        method: 'post',
        data: data
    })
}
/**
 * 根据ID获取遗留物料数据
 * @param data
 */
export function GetLeftmaterial(data?: any) {
    return request({
        url: '/wms/leftmaterial/GetLeftmaterial',
        method: 'post',
        data: data
    })
}

/**
 * 根据ID删除遗留物料
 * @param data
 */
export function DeleteLeftMaterial(data?: any) {
    return request({
        url: '/wms/leftmaterial/DeleteLeftMaterial',
        method: 'post',
        data: data
    })
}
